#ifndef ENDIAN_H
#define ENDIAN_H

inline bool is_little_endian() 
{
    // If left-most byte of 1 is non-zero, we're little endian
    unsigned int one = 1u;
    return *reinterpret_cast<unsigned char*>(&one);
}
#endif

